package cloud.daodao.storm.gateway;

import cloud.daodao.storm.common.constant.AppConstant;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.scheduling.annotation.EnableScheduling;
import reactor.core.publisher.Hooks;

/**
 * @author litao
 */
@EnableScheduling
@EnableDiscoveryClient
@SpringBootApplication(scanBasePackages = {AppConstant.BASE_PACKAGE})
public class GatewayAppApplication {

    public static void main(String[] args) {
        Hooks.enableAutomaticContextPropagation();
        SpringApplication.run(GatewayAppApplication.class, args);
    }

}
